﻿using System;

namespace YJKRevitStairs.StairsEdit.DataDefine
{
	internal struct rawStairsInfo
	{
		public rawStairsInfo(string FloorName, string StairsName, string ErrorInfo, string name)
		{
			this.strFloorName = FloorName;
			this.strStairsType = StairsName;
			this.strErrorInfo = ErrorInfo;
			this.strName = name;
		}

		public bool isEqual(rawStairsInfo otherInfo)
		{
			return otherInfo.strFloorName.Equals(this.strFloorName) && otherInfo.strStairsType.Equals(this.strStairsType) && otherInfo.strErrorInfo.Equals(this.strErrorInfo);
		}

		public void Add(rawStairsInfo otherInfo)
		{
			this.strName += ",";
			this.strName += otherInfo.strName;
		}

		public string strFloorName;

		public string strStairsType;

		public string strErrorInfo;

		public string strName;
	}
}
